import http from './request';


//   /returnReason/list  分页查询全部退货原因
const returnReasonList =(params:any):PRES<IReason>=>http.get(`/returnReason/list`,{params})


//   /returnReason/create 添加退货原因
const ReturnReasonCreate =(params:any):PRES<IReasonList>=>http.post(`/returnReason/create`,params)

// /returnReason/{id} 获取单个退货原因详情信息
const ReturnReasonId =(id:number):PRES<any>=>http.get(`/returnReason/${id}`)


// returnReason/update/{id}  修改退货原因
const ReturnReasonUpdate =(id:number,params:any):PRES<any>=>http.post(`returnReason/update/${id}`,params)


//  /returnReason/delete 批量删除退货原因
const returnReasonDelete =(id:number):PRES<any>=>http.post(`/returnReason/delete?ids=${id}`)
export {
    returnReasonList,
    ReturnReasonCreate,
    ReturnReasonId,
    ReturnReasonUpdate,
    returnReasonDelete
}


